package com.hzhr.iot.collect.dao.redis;

public class Redis_BaseDao {
	protected String getKeyCriteria(String criteriaKey, String criteriaValue) {
		return criteriaKey + "_" + criteriaValue + ":";
	}
	protected String getKey(String business, String entity, String criteriaKey, String criteriaValue) {
		return business + ":" + entity + ":" + getKeyCriteria(criteriaKey, criteriaValue);
	}
	protected String getKey(String business, String entity, String criteriaKey, String criteriaValue, String prop) {
		return business + ":" + entity + ":" + getKeyCriteria(criteriaKey, criteriaValue) + ":" + prop;
	}
}
